package com.cskaoyan.bean;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class MarketGoodsProduct {
    private Integer id;

    private Integer goodsId;

    private String[] specifications;

    @DecimalMin(value = "0", message = "货品售价必须为数字格式！")
    private String price;

    @Min(value = 0,message = "货品数量必须为数字格式！")
    private String number;

    private String url;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;

}